/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package session04;

import java.util.ArrayList;
import java.util.List;

/**
 *
 * @author macbookpro
 */
public class ArrayListTest {
    public static void main(String[] args) {
        List list = new ArrayList();
        
        list.add(new Student("R0001", "abc"));
        list.add(0, new Student("R0002", "xyz"));
        list.add(new Student("R0003", "123"));
        //Hien thi:
        for(int i=0; i<list.size(); i++){
            System.out.println(list.get(i));
        }
    }
}
